﻿/**
 * ...
 * @author 
 */

package list;

import client.Channel;
import flash.display.Sprite;
import flash.text.TextFormat;
import gui.hug.HUGMultiLabel;
import gui.hug.HUGSprite;
import gui.hug.HUGScrollBar;
import gui.hug.HUGColors;
import gui.hug.Utils;
import gui.hug.HUGLabel;
import client.INews;

class FavoriteNewList extends NewList
{
	
	static private inline var SPACE_BETWEEN_ITEMS : UInt = 5;
	static private inline var HEIGHT : UInt = 450;

	public function new(left : UInt = 0, top : UInt = 0, listWidth : UInt = 400) 
	{
		super(left, top, listWidth);
	}
	
	public override function addItem( item : INews, type : Int ) {
		content.push( new FavoriteItemPanel( w - W  - 2 * SPACE_BETWEEN_ITEMS, item, getQuantity() ) ) ;
		draw();
	}
	
	public override function addItems( news : Array < INews >, type : Int ) {
		for (item in news) {
			content.push( new FavoriteItemPanel( w - W - 2 * SPACE_BETWEEN_ITEMS, item, getQuantity() ) ) ;
		}
		draw();
	}
	
}